package com.ea.report.pojo.po.shenshiResult;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.HashMap;

@Getter
@AllArgsConstructor
public enum ShenshiResultProperties {
    Hr(19L, 35L, "心率"),
    Br(20L, 36L, "呼吸"),
    BpH(21L, 37L, "血压-舒张压"),
    BpL(21L, 37L, "血压-收缩压"),
    SpO2(22L, 38L, "血氧"),

    ;
    static final HashMap<String, ShenshiResultProperties> map;

    static {
        HashMap<String, ShenshiResultProperties> hashMap = new HashMap<>(ShenshiResultProperties.values().length);
        for (ShenshiResultProperties value : ShenshiResultProperties.values()) {
            hashMap.put(value.getPropertiesName(), value);
        }
        map = hashMap;
    }

    final Long defaultCompanyConfId;
    final Long defaultCompanyConfIdOfValue;
    final String propertiesName;

    public static ShenshiResultProperties getPropertiesByTitle(String propertiesName) {
        // 根据title获得defaultCompanyConfId
        return map.get(propertiesName);
    }

}
